<template>
	<view class="main animated fadeIn faster">
		<view class="content position-fixed z-index-100" :style="{'paddingTop':$store.state.statusBarHeight+'px','backgroundColor':bgcolor}">
			<view class="title">
				<view class="goback" @click="goback">
					<image src="../../static/组 2457.png"></image>
				</view>
				<text>设置</text>
			</view>
		</view>
		<view class="list list-mt-100">
			<view class="item" @click="openPswPopup">
				<text>实名认证</text>
				<view class="icon">
					<text>未认证</text>
					<image src="../../static/组 2457.png"></image>
				</view>
			</view>
			<view class="item">
				<text>用户协议</text>
				<view class="icon">
					<text>未签订</text>
					<image src="../../static/组 2457.png"></image>
				</view>
			</view>
		</view>
		<view class="list">
			<view class="item">
				<text>隐私政策</text>
				<view class="icon">
					<image src="../../static/组 2457.png"></image>
				</view>
			</view>
			<view class="item">
				<text>隐私政策摘要</text>
				<view class="icon">
					<image src="../../static/组 2457.png"></image>
				</view>
			</view>
			<view class="item">
				<text>个人信息收集清单</text>
			</view>
			<view class="item">
				<text>第三方信息共享清单</text>
				<view class="icon">
					<image src="../../static/组 2457.png"></image>
				</view>
			</view>
		</view>
		<view class="list clearCache">
			<view class="item">
				<text>清除缓存</text>
				<view class="icon">
					<image src="../../static/组 2457.png"></image>
				</view>
			</view>
		</view>
		<view class="list clearCache">
			<view class="item">
				<text>退出登录</text>
				<view class="icon">
					<image src="../../static/组 2457.png"></image>
				</view>
			</view>
		</view>
		<view class="popup_box" :style="{display: display}">
			<view class="PswPopup">
				<view class="title">设定密码</view>
				<input type="password" placeholder="请输入新密码"/>
				<input type="password" placeholder="请再次输入新的密码"/>
				<view class="btns">
					<button class="mini-btn" type="primary" size="mini">确认</button>
					<button class="mini-btn" type="default" size="mini" @click="closePopup">取消</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	
	import store from '@/store/index.js';
	export default {
		data() {
			return {
				display: "none;",
				bgcolor: "#fff",
				current: 0
			}
		},
		methods: {
			goback() {
				uni.navigateBack({
					delta: 1
				});
			},
			openPswPopup() {
				this.display = 'block',
				this.bgcolor = 'transparent'
			},
			closePopup() {
				this.display = 'none',
				this.bgcolor = '#fff'
			},
		}
	}
</script>

<style scoped lang="scss">
.main {
	background: #fff;
	overflow: hidden;
	.content {
		width: 100%;
		overflow: hidden;
	}
	.list {
		background-color: #fcfbfc;
		border-radius: 10rpx;
		margin: 20rpx 20rpx 30rpx;
		padding: 0 20rpx 20rpx 40rpx;
		.item {
			display: flex;
			justify-content: space-between;
			padding: 30rpx 0;
			border-bottom: 1px solid #e8e8e8;
			text {
				font-size: 32rpx;
				color: #555;
			}
			.icon {
				image {
					margin: 0 30rpx 8rpx 12rpx;
					width: 12rpx;
					height: 24rpx;
					transform: rotate(180deg);
				}
				text {
					font-size: 28rpx;
				}
			}
		}
	}
	.clearCache {
		padding: 0 20rpx 0rpx 40rpx;
		.item {
			border: 0;
		}
	}
	.popup_box {
		width: 100%;
		height: 100vh;
		background-color: rgba(0, 0, 0, .4);
		position: fixed;
		top: 0;
		left: 0;
		.PswPopup {
			width: 450rpx;
			height: 500rpx;
			border-radius: 30rpx;
			background-color: #fff;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50% ,-50%);
			padding: 0 50rpx;
			overflow: hidden;
			.title {
				width: 100%;
				font-size: 36rpx;
				display: flex;
				justify-content: center;
				padding: 30rpx 0;
			}
			input {
				height: 80rpx;
				border-bottom: 1px solid #ccc;
				font-size: 24rpx;
				margin-bottom: 10rpx;
				padding-left: 15rpx;
				font-weight: normal;
			}
			.btns {
				height: 60rpx;
				margin-top: 60rpx;
				float: right;
				button {
					padding: 8rpx 40rpx;
					border-radius: 15rpx;
					margin: 0 30rpx;
				}
			}
		}
	}
}
.title {
	display: flex;
	align-items: center;
	font-weight: 700;
	height: 80rpx;
	.goback {
		image {
			margin-left: 50rpx;
			width: 20rpx;
			height: 30rpx;
		}
	}
	text {
		flex: 1;
		margin-right: 50rpx;
		font-size: 34rpx;
		text-align: center;
	}
}
.pt-300 {
	padding-top: 300rpx;
}
.list-mt-100 {
	margin: 200rpx 20rpx 30rpx !important;
}
</style>
